<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"                
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:r="http://java.sun.com/jsf/composite/rumus"
                template="../../modelo/padrao.xhtml">    
    <ui:define name="conteudo">
    	<h1>Listar Permissão</h1>
    	<h:form>
	    	<r:barraListar controle="#{listarPermissao}"/>
	    	<fieldset>	 
	    		<legend>Filtro</legend>   	
		    		<h:panelGrid columns="2">
			    		<h:outputLabel>Descrição</h:outputLabel>
			    		<h:outputLabel>Nome</h:outputLabel>
			    		<h:inputText size="30"/>	    		
			    		<h:inputText size="50"/>
		    		</h:panelGrid>
	    	</fieldset>
	    	<p:dataTable var="objeto" value="#{listarPermissao.objetos}">
	    		<p:column>
                	<f:facet name="header">Descricao</f:facet>
                    <h:outputText value="#{objeto.descricao}" />
                </p:column>
                <p:column>
                	<f:facet name="header">Nome</f:facet>
                    <h:outputText value="#{objeto.nome}" />
                </p:column>
	    	</p:dataTable>
    	</h:form>	
    </ui:define>
</ui:composition>
